<template>
		<view>
			<view>
				<textarea class="main-input" placeholder="请输入企业网址" maxlength="200" @input="descInput" v-model="orders" onchange="this.value=this.value.substring(0, 200)"
				 onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" >
		         </textarea>
				<text class="text">{{numbers}} / 200</text>
			</view>
			<button type="primary" @click="topath">确定</button>
		</view>
</template>
<script>
	export default {
		data() {
			return {
				ddshow: false,
				numbers: 0,
				orders:''
			};
		},
		methods: {
			descInput(e) {
				var txtVal = this.orders.length;
				this.numbers = txtVal
			},
			topath(){
				uni.navigateTo({
					url:'/pages/my/company/infodetail'
				});
			}
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		margin-top: 30upx;
		background-color: rgba(78, 78, 78, 0.05);
	}
	.main-input {
		width: 100%;
		font-size: 28upx;
		border: 1px solid #e5e5e5;
		border-radius: 3px;
		padding: 10upx 20upx 10upx 20upx;
		height: 240upx;
	}
	.text{
		font-size: 28upx;
		position: absolute;
		top: 230upx;
		left: 630upx;
	}
</style>
